@import "@/styles/base/index.scss";

.common-questions {

  &-inner {
    background: #f2c3db;
  }

  .image-line {
    background-color: #F9F6F3;

    img {
      width: 100%;

    }
  }

  &-main {
    padding: 10rem 2rem;
  }

  &-title {
    text-align: center;
    text-transform: uppercase;
    font-size: 3rem;
    font-weight: 900;
    line-height: 3rem;
    color: #942ffb;
  }


  &-content {

    margin-top: 2rem;
    background: #fafafa;
    border-radius: 1rem;
    overflow: hidden;
  }

  .question-item {
    border-bottom: 1.4px solid #9c9abb;
    padding: 32px 64px 16px 64px;

    &.expanded {
      .question-bd {
        max-height: 300px;
      }

      .icon-expand-line {
        transform: rotate(180deg);
      }
    }

    &:last-child {
      border-bottom: none;
    }

    .question-hd {
      margin-bottom: 12px;
      cursor: pointer;

      .icon-expand-line {
        transition: all 0.1s ease;
      }

      .question-title {
        color: #393577;
        letter-spacing: normal;
        margin-top: 0;
        margin-bottom: 0;
        font-size: 20px;
        font-weight: 500;
      }
    }

    .question-bd {
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.7s ease-out;

      .answer {
        color: #080255;
        letter-spacing: normal;
        padding-bottom: 0;
        padding-right: 4rem;
        font-size: 17px;
        font-weight: 400;
        line-height: 1.7;


      }

      a {
        font-weight: 400;
        font-size: 18px;
        text-decoration: underline;
      }
    }
  }
}


@media (max-width: 1023px) {

  .common-questions {

    &-main {
      padding: 10rem 0rem;
    }
  }
}

@media (max-width: 768px) {

  .common-questions {

    .question-item {
      padding: 10px 20px;
    }
  }
}

@media (max-width: 480px) {

  .common-questions {
    &-title {
      font-size: 40px;
    }
  }
}